This is important because the dlsym() approach can fail if gtk was
loaded with RTLD_LOCAL.
https://bugzilla.gnome.org/show_bug.cgi?id=710096
#include "gtktypebuiltins.h"
#include "gtkwindow.h"
#include "gtkicontheme.h"
+#include "gtktestutils.h"
#include "deprecated/gtkstock.h"
if (gtype != G_TYPE_INVALID)
return gtype;
- return _gtk_builder_resolve_type_lazily (type_name);
+ gtype = _gtk_builder_resolve_type_lazily (type_name);
+ if (gtype != G_TYPE_INVALID)
+ return gtype;
+
+ gtk_test_register_all_types ();
+ return g_type_from_name (type_name);
}
typedef struct